import { http } from "@/utils/http";

/** 获取菜单管理列表 */
export const getTableMenuList = () => {
  return http.request<any>("get", "/menu/getTableMenuList");
};

/** 添加菜单 */
export const addMenu = (data?: object) => {
  return http.request<any>("post", "/menu/addMenu", { data });
};

/** 修改菜单 */
export const updateMenu = (data?: object) => {
  return http.request<any>("put", "/menu/updateMenu", { data });
};

/** 删除菜单 */
export const deleteMenu = (data?: object) => {
  return http.request<any>("delete", "/menu/deleteMenu", { data });
};
